package cn.nacos.naocses.controller;

import cn.nacos.naocses.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JavaLyl
 * @version V1.0.0
 * @ClassName TestController.java
 * @Description TODO
 * @createTime 2021-08-12 14:11:00
 */
@RestController
public class TestController {
    @Autowired
    private TestService service;

    @GetMapping(value = "/hello/{name}")
    public String apiHello(@PathVariable String name) {
        return service.sayHello(name);
    }
}
